Skip to content

Work around K3s pod-resources socket flake - #482

Open
dajudge wants to merge 1 commit into
masterfrom
agent/k3s-pod-resources-tmpfs
Open

Work around K3s pod-resources socket flake#482
dajudge wants to merge 1 commit into
masterfrom
agent/k3s-pod-resources-tmpfs

Conversation

@dajudge

@dajudge dajudge commented Aug 11, 2026

Copy link
Copy Markdown
Owner

What changed

Mount /var/lib/kubelet/pod-resources as tmpfs in K3sContainer.

Why

K3s can occasionally fail kubelet startup with:

failed to move temporary file to addr "/var/lib/kubelet/pod-resources/kubelet.sock": ... invalid cross-device link

This is the same failure tracked upstream in k3s-io/k3s#4042. Keeping the pod-resources socket directory on a dedicated tmpfs avoids the overlay/filesystem boundary involved in the failing rename without moving broader K3s or kubelet state into memory.

Impact

The change is intentionally narrow: only the kubelet pod-resources runtime socket directory is affected. Existing /run and /var/run tmpfs mounts remain unchanged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant